package day04;

import java.util.Scanner;

public class CommandBusWintch {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请选择功能：1.存款 2.取款 3.转账 4.退出");
        int command = scan.nextInt();
        switch (command){
            case 1:
                System.out.println("存款业务...");
                System.out.println("请输入你存款金额:");
                int a1 = scan.nextInt();
                System.out.println("请输入密码");
                int b1 = scan.nextInt();
                System.out.println("密码正确");
                System.out.println("办理成功");
                break;
            case 2:
                System.out.println("取款业务...");
                System.out.println("请输入你取款金额:");
                int a2 = scan.nextInt();
                System.out.println("请输入密码");
                int b2 = scan.nextInt();
                System.out.println("密码正确");
                System.out.println("办理成功");

                break;
            case 3:
                System.out.println("转账业务...");
                System.out.println("请输入你转账金额:");
                int a3 = scan.nextInt();
                System.out.println("请输入密码");
                int b3 = scan.nextInt();
                System.out.println("密码正确");
                System.out.println("办理成功");
                break;
            case 4:
                System.out.println("退出成功");
            default:
                System.out.println("输入错误");
        }
    }
}
